import http from "@/utils/request";

// 添加学员
export const addStu = (data) => http.post("/students/addstu",{
    ...data
})

// 获取学员信息
export const getstulistApi = (count=10,page=1,classes) =>http.get("/students/getstulist",{
    params:{
        count,page,class:classes
    }
})

// 编辑学员信息
export const editStuApi = (data) =>http.post("/students/updatestu",{
    ...data
})

// 删除学员信息
export const deleteStu = (sId) =>http.get("/students/delstu",{
    params:{
        sId
    }
})

// 搜索
export const searchstuApi = (key='',count,page) =>http.get("/students/searchstu",{
    params:{
        key,count,page
    }   
})

// 获取登入信息
export const getLoginApi = (page,count) =>http.get('/getloginlog',{
    params:{
        page,count
    }
})

// 获取班级列表
export const getClassApi = () =>http.get('/students/getclasses')